package com.iflyteck.mapper;

import com.iflyteck.pojo.Article;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

// @Mapper // 如果在启动类上加了 @MapperScan("com.iflyteck.mapper") 所有mapper接口上的@Mapper都可以去掉
public interface ArticleMapper {
    Article selectArticle(Integer id);

    @Select("select * from t_article")
    List<Article> queryArticle();
}
